﻿
if exists(select * from sysobjects where name = 'ERPStoreOffersOfferedProduct' and xtype = 'V')
Begin
	drop view dbo.ERPStoreOffersOfferedProduct
End
Go

if exists(select * from sysobjects where name = 'ERPStoreOffersEntitySelectedDetailExtension' and xtype = 'U')
Begin
	exec sp_rename 'dbo.ERPStoreOffersEntitySelectedDetailExtension', 'ERPStoreOffersOfferedProduct'
End
Go

